﻿namespace FallingRocks
{
    public class SpecialObject : GameObject 
    {
        public SpecialObject(Position topLeft, char[] visualisation, Position speed, Color color)
            : base(topLeft, visualisation, speed, color)
        {
        }

        public bool Exists { get; protected set; }

        public override bool CanCollideWith(GameObject gameObject)
        {
            return gameObject.GetType() == typeof(Dwarf);
        }

        public override bool RespondToCollision(GameObject gameobject)
        {
            return false;
        }
    }
}
